const redis = require('redis')
const { REDIS_CONF } = require('../conf/db')

// 创建客户端
const redisClient = redis.createClient({
  url: `redis://${REDIS_CONF.host}:${REDIS_CONF.port}`
})
redisClient.on('error', err=> {
  console.log(err)
}).connect()


module.exports = redisClient